/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-08-28
 * Time:8:52
 */
public class New {
    public static void main(String[] args) {
        int count=0;
        for (int i = 1; i <=100; i++) {
            if(i/10==9)
            {
              //  System.out.println(i);
                count++;
            }

            else if(i%10==9)
            {
               // System.out.println(i);
                count++;
            }

        }
        System.out.println(count);
    }
}
